package main

import "fmt"

func main() {

	//该个案例演示golang如何一次性声明多个变量

	var n1, n2, n3 int
	fmt.Println("n1=", n1, "n2=", n2, "n3=", n3)
	//一次定义多个变量 类型不同
	var m1, name, m3 = 100, "123", 122
	fmt.Println("m1=", m1, "name=", name, "m3=", m3)
	//类型推导
	f1, f2, f3 := 100, "123", 122
	fmt.Println("f1=", f1, "f2=", f2, "f3=", f3)
}
